"""hospitaloa URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, include
from NewFlowLogic import views

urlpatterns = [
    path('letter_from_superiors', views.letter_from_superiors.as_view()),    # 上级来文
    path('revoke_approval', views.revoke_approval.as_view()),               # 上级来文撤回审批
    path('external_correspondence_superiors', views.external_correspondence_superiors.as_view()),  # 外部来函
    path('superiors_approval', views.superiors_approval.as_view()),                 # 外部来函撤回审批
    path('superiors_stop', views.superiors_stop.as_view()),  # 外部来函撤回审批
    path('zero_refer', views.zero_refer.as_view()),                             # 付款流程申请人提交
    path('countersignature_modification', views.CountersignatureModification.as_view()),  # 合同会签退回修改

    # 扫码签到
    path('topic_scan_code', views.TopicScanCode.as_view()),                 # 议题扫码签到
    path('meeting_room_scan_code_confirmation', views.MeetingRoomScanCodeConfirmation.as_view()),  # 会议室扫码返回数据
    path('MeetingRoomCheckIn', views.meeting_room_check_in.as_view()),              # 会议室预订扫码签到
    path('MeetingRoomCheckDetail', views.meeting_room_check_detail.as_view()),  # 会议室预订扫码签到详情
    path('ask_for_leave', views.AskForLeave.as_view()),                 # 会议室参会人员请假

    path('topic_scan_code_confirmation', views.TopicScanCodeConfirmation.as_view()),  # 议题扫码返回数据
    path('topic_checkIn', views.TopicCheckIn.as_view()),  # 议题扫码签到
    path('SignDetail', views.SignDetail.as_view()),  # 议题扫码详情

    path('committee_attendance', views.CommitteeAttendanceTable.as_view()),  # 委员会议题扫码返回数据
    path('committee_attendance_checkIn', views.CommitteeAttendanceCheckIn.as_view()),  # 委员会议题扫码签到
    path('committe_attendanc_sign_detail', views.CommitteeAttendanceSignDetail.as_view()),  # 委员会议题扫码签到详情

    path('meetingleavelist.html', views.MeetingLeaveList.as_view()),                    # 会议室请假列表页
    path('meetingleaveindex.html', views.MeetingLeaveIndex.as_view()),                  # 会议室请假申请页
    path('meetingleavedetail.html', views.MeetingLeaveDetail.as_view()),                # 会议室请假详情页
    path('meetingleavedraft.html', views.MeetingLeaveDraft.as_view()),                  # 会议室请假草稿页
    path('meetingleavestop', views.MeetingLeaveStop.as_view()),                         # 会议室请假中止/删除

    path('SearchTravelApplications', views.SearchTravelApplications.as_view()),         # 查询差旅/请假数据

    # 外宾接待流程
    path('official_business_reception_list.html', views.OfficialBusinessReceptionList.as_view()),  # 公务（外宾）接待事前审批列表页
    path('official_business_reception_index.html', views.OfficialBusinessReceptionIndex.as_view()),  # 公务（外宾）接待事前审批申请页
    path('official_business_reception_draft.html', views.OfficialBusinessReceptionDraft.as_view()),  # 公务（外宾）接待事前审批草稿页
    path('official_business_reception_detail.html', views.OfficialBusinessReceptionDetail.as_view()),  # 公务（外宾）接待事前审批详情页
    path('official_business_reception_operate', views.OfficialBusinessReceptionOperate.as_view()),  # 公务（外宾）接待事前审批操作

    path('reception_checklist_list.html', views.ReceptionChecklistList.as_view()),  # 公务（外宾）接待清单审批列表页
    path('reception_checklist_index.html', views.ReceptionChecklistIndex.as_view()),  # 公务（外宾）接待清单审批申请页
    path('reception_checklist_draft.html', views.ReceptionChecklistDraft.as_view()),  # 公务（外宾）接待清单审批草稿页
    path('reception_checklist_detail.html', views.ReceptionChecklistDetail.as_view()),  # 公务（外宾）接待清单审批详情页
    path('reception_checklist_operation', views.ReceptionChecklistOperation.as_view()),  # 公务（外宾）接待清单审批操作

    # 员工出国
    path('employees_abroad_list.html', views.EmployeesAbroadList.as_view()),  # 职工出国（境）审批列表页
    path('employees_abroad_index.html', views.EmployeesAbroadIndex.as_view()),  # 职工出国（境）审批申请页
    path('employees_abroad_draft.html', views.EmployeesAbroadDraft.as_view()),  # 职工出国（境）审批草稿页
    path('employees_abroad_detail.html', views.EmployeesAbroadDetail.as_view()),  # 职工出国（境）审批详情页
    path('employees_abroad_operation', views.EmployeesAbroadOperation.as_view()),  # 职工出国（境）审批操作

    #================================ 考勤信息接收接口 ===============================
    path('AttendanceInterface', views.AttendanceInterfaceView.as_view()),               # 汉王接口
    path('ThreeBestScheduling', views.ThreeBestScheduling.as_view()),                   # 三佳接口
]
